﻿namespace FactoryMethodPatterDemo
{
    /// <summary>
    /// 具体工厂角色类----减法工厂
    /// </summary>
    public class SubFactory : IFactory
    {
        /// <summary>
        /// 减法工厂创建减法算法产品
        /// Note : 工厂模式中：具体工厂只会生产对应具体产品
        /// </summary>
        /// <returns></returns>
        public Operation CreateOperation()
        {
            return new SubOperation();
        }
    }
}